<!DOCTYPE html>
<html lang="zh">
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/header :: header(~{::title},~{::link},~{})">
    <title>配置套餐</title>
    <link rel="icon" th:href="@{/assets/img/lcxm.ico}" type="image/ico">
    <link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body class="body">
<!--导航-->
<div th:replace="common/nav :: nav(true)"></div>
<div class="container">
    <div class="page-header" style="margin-top: 20px;top:50%;">
        <h1 class="text-primary">凯捷科技 <small>简易点餐</small></h1>
    </div>
    <div class="row row-nocol">
        <!--
        <form class="form-inline lookup" role="form" method="post">
            <div class="form-group form-btn-bar">
                <button type="submit" class="btn btn-primary btn-sm">
                    <i class="glyphicon glyphicon-search"></i> 查询
                </button>
                <button type="button" class="btn btn-info btn-sm reset">
                    <i class="glyphicon glyphicon-refresh"></i> 重置
                </button>
            </div>

        </form>
         -->
        <!-- 操作信息提示的地方 -->
        <div th:if="${remind}" class="alert alert-${ remind.level  }"
             th:classappend="'alert-' + ${remind.level}">
            <button data-dismiss="alert" class="close" type="button">
                <i class="glyphicon glyphicon-remove"></i>
            </button>
            <span th:remove="tag" th:utext="${ remind.message }"></span>
        </div>
        <!--列表栏-->
        <form class="nocol">
            <div class="action-bar">
                <a class="btn btn-sm btn-success" th:href="@{/food/0}">
                    <i class="glyphicon glyphicon-plus"></i> 添加
                </a>
            </div>

            <table class="table table-striped  table-hover table-bordered">
                <thead>
                <tr class="text-center">
                    <th>套餐名</th>
                    <th>菜品</th>
                    <th>每日必点</th>
                    <th class="text-info">操作</th>
                </tr>
                </thead>
                <tbody align="center">
                <!-- <c:forEach items="${ pager.datas}" var="cur" varStatus="status"> -->
                <tr th:each="cur:${pager?.datas}">
                    <td class="text-danger " th:text="${cur.name}">套餐一</td>
                    <td th:text="${cur.describe}">黄焖鸡米饭</td>
                    <td th:text="${cur.defaults?'是':'否'}">是</td>
                    <td>
                        <div class="btn-group-dis">
                            <a class="btn btn-xs btn-success " th:href="@{'/food/'+${cur.id}}"
                               data-toggle="tooltip" title="编辑"> <i
                                    class="glyphicon glyphicon-edit"></i>
                            </a>


                            <button class="btn btn-xs btn-danger action-get" type="button"
                                    th:attr="data-url='/food/delete/'+${cur.id}"
                                    data-toggle="tooltip"
                                    title="删除" data-confirm="确认删除本条记录吗">
                                <i class="glyphicon glyphicon-trash"></i>
                            </button>
                        </div>
                    </td>
                </tr>
                <!-- </c:forEach> -->
                </tbody>
            </table>
        </form>
    </div>


</div>

<!-- 引入通用js-->
<div th:replace="common/footer :: footer"></div>

</body>
</html>